<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
    <title th:text="#{screen.service.error.header}">Unauthorized Service Redirect View</title>
    <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
</head>

<body>
    <main class="container mt-3 mb-3">
        <div layout:fragment="content" class="banner banner-danger alert alert-danger mdc-card card p-4 m-auto w-lg-66">
            <h2 th:utext="#{screen.service.error.header}">Application Not Authorized to Use CAS</h2>
            <p th:utext="#{screen.service.error.redirect(${unauthorizedRedirectUrl})}"></p>
            <script th:inline="javascript">
                /*<![CDATA[*/
                setTimeout(() => {
                    window.location = /*[[${unauthorizedRedirectUrl}]]*/;
                }, 3000);
                /*]]>*/
            </script>
        </div>
    </main>
</body>
</html>
